#ifndef ASIO_SERVER_MSGNODE_H
#define ASIO_SERVER_MSGNODE_H

#include <boost/asio.hpp>
#include <cstring>

class RecvNode {
public:
    RecvNode(short data_len, short msg_id);

    void Clear();

public:
    char *_data;
    short _total_len;
    short _current_len;
    short _msg_id;
};

class SendNode {
public:
    SendNode(const char *msg, short body_len, short msg_id);

public:
    char *_data;
    short _total_len;
    short _current_len;
    short _msg_id;
};


#endif //ASIO_SERVER_MSGNODE_H
